import http from '../util/http';
import urlConcat from './url-concat';
import format from '../util/timer';
export default {
  async mushroomoutAdd(obj: any) {
    const paramsUrl = urlConcat(`/mushroom/add`, obj);
    return http.post(paramsUrl);
  },
  async mushroomoutDel(ids: string) {
    const paramsUrl = urlConcat(`/mushroom/delete`, {
      ids,
    });
    return http.get(paramsUrl);
  },
  async mushroomoutList(obj: any) {
    obj.startTime = format(obj.startTime) || '';
    obj.endTime = format(obj.endTime) || '';
    const paramsUrl = urlConcat(`/mushroom/selectListPage`, obj);
    return http.get(paramsUrl);
  },
  async mushroomoutUpdate(obj: any) {
    const paramsUrl = urlConcat(`/mushroom/update`, obj);
    return http.post(paramsUrl);
  },
};
